'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 统计数据
 * @author agl
 */

var moment = require('moment');
var async = require('async');
var mongoConnector = require('../../app/libs/mongodb/mongoConnector');
/* jshint unused:false */
var recordSchema = require('./recordSchema.js');
var Record = mongoConnector().model('Record');

/**
 * 获取记录列表
 */
module.exports.getPayList = function (server_id, cb) {
    this.getByEventType(server_id, 100601, cb);
};

/**
 * 按消耗类型查询数据
 */
module.exports.getByEventType = function (server_id, event_type, cb) {
    Record.find({
        server_id: server_id,
        event_type: event_type
    }, cb);
};
